app.directive('leatestNews', ['newsReader', 'configReader', function(newsReader, configReader) {
  return {
    restrict: 'EA',
    templateUrl: '/js/directives/latest-news.html',
    link: function(scope) {
      newsReader.read(3).then(function(data) {
        scope.news = data;
      }, function(err) {
        scope.news = [{heading: 'Cannot read news'}];
      });

      // TODO - make "read more" functionality.

    }
  };
}]);